package com.wjhs.redispractice.accesslimit.config;

import com.wjhs.redispractice.accesslimit.aspect.AccessLimitAspect;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 注册自定义的AccessLimitAspect，以实现全局的接口访问限制配置
 */
@Configuration
@AutoConfigureAfter
public class AccessLimitConfig {
    @Bean
    public AccessLimitAspect accessLimitAspect() {
        return new AccessLimitAspect();
    }
}
